import request from '@/sheep/request';

export default {
  // 申请店铺
  apply: (data) =>
    request({
      url: 'user.user/shop_apply',
      method: 'POST',
      data,
      custom: {
        showSuccess: true,
      },
    }),
	// 店铺列表
	list: (data) =>
	  request({
	    url: 'user.user/shop_list',
	    method: 'POST',
	    data,
	    custom: {
	      showSuccess: false,
	    },
	  }),
	  // 进货
	  shopRestock: (data) =>
		request({
		  url: 'user.user/shop_restock',
		  method: 'POST',
		  data,
		  custom: {
			showSuccess: true,
		  },
		}),
		// 进货列表
	shopRestockList: (data) =>
		request({
		  url: 'user.user/shop_restock_list',
		  method: 'POST',
		  data,
		  custom: {
			showSuccess: false,
		  },
		}),
		
	// 店铺详情
	shopInfo: (data) =>
		request({
		  url: 'user.user/shop_info',
		  method: 'GET',
		  data,
		  custom: {
			showSuccess: false,
		  },
		}),
};
